package com.diy.sigmund.designpatterns.adapterpattern;

/**
 * 使用 AudioPlayer 来播放不同类型的音频格式。
 * 
 * @author ylm-sigmund
 * @since 2020/11/30 17:07
 */
public class AdapterPatternTest {

    public static void main(String[] args) {
        AudioPlayer audioPlayer = new AudioPlayer();

        audioPlayer.play("mp3", "beyond the horizon.mp3");
        audioPlayer.play("mp4", "alone.mp4");
        audioPlayer.play("vlc", "far far away.vlc");
        audioPlayer.play("avi", "mind me.avi");
    }
}
